package com.study.gupao.observer;

import java.util.Observable;
import java.util.Observer;

/**
 * @ClassName: Teacher
 * @Description:
 * @author: Administrator
 * @Date: 2019-03-18 14:18
 */
public class Teacher implements SubEventer {
    public Teacher(String name) {
        this.name = name;
    }

    private  String name;
    public String getName() {
        return name;
    }
    public void setName(String name) {
        this.name = name;
    }
    public void event(GperSocial social) {
        System.out.println(this.name+"老师您好啊！");
        System.out.println("学生"+social.getQuestion().getStudent().
                getName()+"提出了问题："+social.getQuestion().getContent()+"需要你到社区解答。。。。");
    }

}
